package com.clt.ess.CABeen;

/**
 *{
 * " taskCode ":" applyServiceRandom ",
 * " version ":" 1.0",
 * " resultCode ":"0"
 * " resultCodeMsg ":"随机数申请成功"
 * " randomB ":"1234567890123456"
 * }
 * D
 */
public class ApplyServiceRandomResponse {
    //业务类型 applyServiceRandom 必须
    private String taskCode;
    //协议版本号 1.0 必须
    private String version;
    //返回值，0 表示成功，其他表示错误 必须
    private String resultCode;
    //返回信息描述 必须
    private String resultCodeMsg;
    //服务端随机数 16 个字节 必须
    private String randomB;


    public String getTaskCode() {
        return taskCode;
    }

    public void setTaskCode(String taskCode) {
        this.taskCode = taskCode;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getResultCodeMsg() {
        return resultCodeMsg;
    }

    public void setResultCodeMsg(String resultCodeMsg) {
        this.resultCodeMsg = resultCodeMsg;
    }

    public String getRandomB() {
        return randomB;
    }

    public void setRandomB(String randomB) {
        this.randomB = randomB;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"taskCode\":\"")
                .append(taskCode).append('\"');
        sb.append(",\"version\":\"")
                .append(version).append('\"');
        sb.append(",\"resultCode\":\"")
                .append(resultCode).append('\"');
        sb.append(",\"resultCodeMsg\":\"")
                .append(resultCodeMsg).append('\"');
        sb.append(",\"randomB\":\"")
                .append(randomB).append('\"');
        sb.append('}');
        return sb.toString();
    }
}
